<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="/struts-tags" prefix="s" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Home</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords"
	content="Modern Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template, 
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
<script type="application/x-javascript">
	
	 addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } 

</script>
<!-- Bootstrap Core CSS -->
<link href="css/bootstrap.min.css" rel='stylesheet' type='text/css' />
<!-- Custom CSS -->
<link href="css/style.css" rel='stylesheet' type='text/css' />
<!-- Graph CSS -->
<link href="css/lines.css" rel='stylesheet' type='text/css' />
<link href="css/font-awesome.css" rel="stylesheet">
<!-- jQuery -->
<script src="js/jquery.min.js"></script>
<!-- Nav CSS -->
<link href="css/custom.css" rel="stylesheet">
<!-- Metis Menu Plugin JavaScript -->
<script src="js/metisMenu.min.js"></script>
<script src="js/custom.js"></script>
<!-- Graph JavaScript -->
<script src="js/d3.v3.js"></script>
<script src="js/rickshaw.js"></script>
</head>
<body>
	<div id="wrapper">
		<!-- Navigation -->
		<!-- left.jsp -->
		<jsp:include page="left.jsp"></jsp:include>
		<div id="page-wrapper">
	
	<div class="xs">
  	    <div class="well1 white">
        <h1 align="center">添加人员</h1>
        <form name="add" method="post" action="addUser">
           <div class="form-group">
              <label class="control-label">工号</label>
               <input name="user.user_id" type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched" >
            </div>
             <div class="form-group">
              <label class="control-label">姓名</label>
              <input name="user.user_name" type="text" class="form-control1 ng-invalid ng-invalid-required ng-touched" >
            </div>
          
          <%--<div class="form-group">
              <label class="control-label">密码</label>
              <input name="user.pwd" type="password" class="form-control1 ng-invalid ng-invalid-required ng-touched" >
            </div>--%>
            
            
            <div class="form-group filled">
              <label class="control-label">角色</label>
              <select name="role.id" class="form-control1 ng-invalid ng-invalid-required">
                <option value="Select a pirate">选择一个角色</option>
                <c:forEach var="r" items="${roleList }">
                	<option value="${r.id }">${r.role_name }</option>
                </c:forEach>
              </select>
            </div>
             
            <div class="form-group filled">
              <label class="control-label">部门</label>
              <select name="dept.id" class="form-control1 ng-invalid ng-invalid-required">
                <option value="Select a pirate">选择一个部门</option>
                 <c:forEach var="d" items="${deptList }">
                	<option value="${d.id }">${d.dept_id }&nbsp;&nbsp;&nbsp;&nbsp;${d.dept_name }</option>
                </c:forEach>
              </select>
            </div>
            <div class="form-group">
              <label class="control-label">电话</label>
              <input name="user.phone_number" type="text" class="form-control1 ng-invalid ng-invalid-required ng-valid-pattern ng-touched">
            </div>
            <div class="form-group" align="center">
              <button type="submit" class="btn btn-primary" onclick="this.form.submit()">添加人员</button>
              <button type="reset" class="btn btn-default">重　　置</button>
            </div>
        </form>
     </div>
			<!-- copyright -->
			<jsp:include page="copyright.jsp"></jsp:include>
		</div>
	</div>
	<!-- /#page-wrapper -->
	</div>
	<!-- /#wrapper -->
	<!-- Bootstrap Core JavaScript -->
	<script src="js/bootstrap.min.js"></script>
</body>
</html>
